package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.util.List;

public class CategoryVo {//产品类别表
    private int categoryId;//类别id
    private String categoryName; //类别名称
    private int categoryIdt; //父级类别名称(自连接)
    private int categoryRank;//级别
    private List<Category> category;

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public int getCategoryIdt() {
        return categoryIdt;
    }

    public void setCategoryIdt(int categoryIdt) {
        this.categoryIdt = categoryIdt;
    }

    public int getCategoryRank() {
        return categoryRank;
    }

    public void setCategoryRank(int categoryRank) {
        this.categoryRank = categoryRank;
    }

    public List<Category> getCategory() {
        return category;
    }

    public void setCategory(List<Category> category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return "CategoryVo{" +
                "categoryId=" + categoryId +
                ", categoryName='" + categoryName + '\'' +
                ", categoryRank=" + categoryRank +
                ", category=" + category +
                '}';
    }
}
